home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / genial / ui / comment_ui.c next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  1.8 KB  |  83 lines

  1. /*
  2.  * comment_ui.c - User interface object initialization functions.
  3.  * This file was generated by `gxv' from `comment.G'.
  4.  * DO NOT EDIT BY HAND.
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include <sys/param.h>
  9. #include <sys/types.h>
  10. #include <xview/xview.h>
  11. #include <xview/canvas.h>
  12. #include <xview/panel.h>
  13. #include <xview/scrollbar.h>
  14. #include <xview/svrimage.h>
  15. #include <xview/termsw.h>
  16. #include <xview/text.h>
  17. #include <xview/tty.h>
  18. #include <xview/xv_xrect.h>
  19. #include "comment_ui.h"
  20.  
  21. /*
  22.  * Initialize an instance of object `comm_win'.
  23.  */
  24. comment_comm_win_objects *
  25. comment_comm_win_objects_initialize(ip, owner)
  26.     comment_comm_win_objects    *ip;
  27.     Xv_opaque    owner;
  28. {
  29.     if (!ip && !(ip = (comment_comm_win_objects *) calloc(1, sizeof (comment_comm_win_objects))))
  30.         return (comment_comm_win_objects *) NULL;
  31.     if (!ip->comm_win)
  32.         ip->comm_win = comment_comm_win_comm_win_create(ip, owner);
  33.     if (!ip->textpane1)
  34.         ip->textpane1 = comment_comm_win_textpane1_create(ip, ip->comm_win);
  35.     return ip;
  36. }
  37.  
  38. /*
  39.  * Create object `comm_win' in the specified instance.
  40.  */
  41. Xv_opaque
  42. comment_comm_win_comm_win_create(ip, owner)
  43.     comment_comm_win_objects    *ip;
  44.     Xv_opaque    owner;
  45. {
  46.     Xv_opaque    obj;
  47.     
  48.     obj = xv_create(owner, FRAME_CMD,
  49.         XV_KEY_DATA, INSTANCE, ip,
  50.         XV_WIDTH, 471,
  51.         XV_HEIGHT, 168,
  52.         XV_LABEL, "Image Comments",
  53.         XV_SHOW, FALSE,
  54.         FRAME_SHOW_FOOTER, FALSE,
  55.         FRAME_SHOW_RESIZE_CORNER, FALSE,
  56.         FRAME_CMD_PUSHPIN_IN, TRUE,
  57.         NULL);
  58.     xv_set(xv_get(obj, FRAME_CMD_PANEL), WIN_SHOW, FALSE, NULL);
  59.     return obj;
  60. }
  61.  
  62. /*
  63.  * Create object `textpane1' in the specified instance.
  64.  */
  65. Xv_opaque
  66. comment_comm_win_textpane1_create(ip, owner)
  67.     comment_comm_win_objects    *ip;
  68.     Xv_opaque    owner;
  69. {
  70.     Xv_opaque    obj;
  71.     
  72.     obj = xv_create(owner, TEXTSW,
  73.         XV_KEY_DATA, INSTANCE, ip,
  74.         XV_X, 0,
  75.         XV_Y, 0,
  76.         XV_WIDTH, WIN_EXTEND_TO_EDGE,
  77.         XV_HEIGHT, WIN_EXTEND_TO_EDGE,
  78.         OPENWIN_SHOW_BORDERS, TRUE,
  79.         NULL);
  80.     return obj;
  81. }
  82.  
  83.